import { Button } from "antd";
import { useFangdou } from "../../hooks/useFangdou";

function Index() {
  const dou = useFangdou(() => {
    console.log("aaaa");
  });
  return (
    <div>
      <div>防抖实验</div>
      <Button onClick={dou}>防抖</Button>
    </div>
  );
}

export default Index;
